<?php
class sfWidgetFormSchemaFormatterEdsl extends sfWidgetFormSchemaFormatter {
	protected
		$rowFormat = "<p class=\"edsl_form\">%label% <span>%field%</span>%help%%error%%hidden_fields%</p>",
		$helpFormat = "<br /><span class=\"errorMsg\"></span><span class=\"formHint\">%help%</span>",
		$errorRowFormat = '<span class="warning">%errors%</span>',
		$errorListFormatInARow = "<span class=\"error_list\">\n%errors% </span>",
		$errorRowFormatInARow = "%error%",
		$namedErrorRowFormatInARow = "<span class=\"error_list\">%name%: %error%</span>",
		$decoratorFormat = "%content%";


		/*
	 * protected
		// this says to surround our element with a div of class "form-row".
		// then print out the error, label, form field, help text, and finally the hidden fields
		// new lines (\n) are included for readable html
		$rowFormat = "<div class=\"form-row\">\n %error%\n %label%%field%\n %help%\n%hidden_fields%\n</div>\n",
		// this defines the exact format of the above %help%. This says to wrap it in a div of class form_helper.
		// The %help% in this case defines that actual help text (if any) that's given
		$helpFormat = '<div class="form_helper">%help%</div>',
		// Certain errors do not pertain to any specific widget. In these cases, the errors are printed on their own row
		// This defines the format of how to set up that row
		$errorRowFormat = "<div>\n%errors%</div>\n",
		// this is the wrapper always uses around errors.
		$errorListFormatInARow = " <ul class=\"error_list\">\n%errors% </ul>\n",
		// This defines how to print the actual error in normal situations
		$errorRowFormatInARow = " <li>%error%</li>\n",
		// This defines how to print the actual error in situations where the error does not belong to a specific widget - is printed at the top of the form
		$namedErrorRowFormatInARow = " <li>%name%: %error%</li>\n",
		// We didn't cover it, but you can embed forms inside other forms.
		// When you do, the following is used to "wrap" your form. In the table example, this is a <table> </table> value.
		$decoratorFormat = "<fieldset>\n %content%</fieldset>";
*/
	public function formatHelp($help)
	  {
	  /*  if (!$help)
	    {
	      return '';
	    }
	*/
	    return strtr($this->getHelpFormat(), array('%help%' => $this->translate($help)));
	  }
}
?>